//
//  YCOrderRemarkTableViewCell.m
//  lianganyuchu
//
//  Created by iMac on 17/2/28.
//  Copyright © 2017年 杭州桑缇电子商务有限公司. All rights reserved.
//

#import "YCOrderRemarkTableViewCell.h"

@implementation YCOrderRemarkTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    CGFloat width=kMainScreen_Width-2*kDistance;
    [self.backView addShadowWith:CGSizeMake(width, 50)];
    
    [self.label1 setFont:[UIFont LightFontOfSize:15]];
    [self.labReamrk setFont:[UIFont LightFontOfSize:16]];
    [self.label1 setTextColor:MAIN_COLOR];
    [self.labReamrk setTextColor:TEXT_DEEP];
    [self.labReamrk setNumberOfLines:0];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)bindWith:(OrderTable *)order
{
    if (order.remark) {
        CGFloat height=getTextSize(order.remark, kMainScreen_Width-140, [UIFont LightFontOfSize:16]).height-16;
        CGFloat width=kMainScreen_Width-2*kDistance;
        [self.backView addShadowWith:CGSizeMake(width, 50+height)];
    }
    [self.labReamrk setText:order.remark];
}


@end
